<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<h1>JSON对象的创建</h1>
		<script>
			person = {
				name:'Jack',
				age:20
				addr:{
					homeaddr:'太原小店',
					workaddr:'太原学院',
				}
	    };
			alert(person.addr.homeaddr);
			alert(person.['age'])
			student=[
				{name:'twx',age:18},
				{name:'gzx',age:17},
			        ]
			alert(student[1].age);
		</script>
	</body>
</html>
